package com.my.lucky;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.swing.*;

@SpringBootApplication
@EnableScheduling
public class Application {
    public static void main(String[] args) {
        // 设置Swing的外观为系统默认外观
//        try {
//            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
//        } catch (Exception e) {
//            e.printStackTrace();
//        }

        // 启动Spring Boot应用
        new SpringApplicationBuilder(Application.class)
               // .headless(false)  // 允许Swing GUI
                .run(args);
    }
} 